package main
import (
	"fmt"
	"model"
)

func main(){
	var num int = 10
	var p *int = &num
	fmt.Printf("num's address:%v\nnum'values:%v\n",&num,num)
	fmt.Printf("p'value:%v\np's address:%v\n",p,&p)
	fmt.Printf("p'content:%v\n",*p)
	*p = 100 //修改指针所指向的地址块的值
	fmt.Printf("num's address:%v\nnum'values:%v\n",&num,num)
	fmt.Printf("p'value:%v\np's address:%v\n",p,&p)
	fmt.Printf("p'content:%v\n",*p)
	result := model.Add(1,2)
	fmt.Printf("add'func:%v\n",result)
}